<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Boot WMS</title> 
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> 
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> 
  <!-- Tempusdominus Bbootstrap 4 -->
  <link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- JQVMap -->
  <link rel="stylesheet" href="plugins/jqvmap/jqvmap.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/adminlte.min.css">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css">
  <!-- summernote -->
  <link rel="stylesheet" href="plugins/summernote/summernote-bs4.css"> 
  <!-- Google Font: Source Sans Pro -->
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body class="hold-transition sidebar-mini layout-fixed">
<div class="wrapper">

  <!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">  
	<div id="test1"></div> 
	<div id="test2"></div>
    
    <ul class="navbar-nav ml-auto"> 
		<div id="test3"></div> 
		<div id="test4"></div>
		<li class="nav-item">
		  <a class="nav-link" data-widget="control-sidebar" data-slide="true" href="#">
		    <i class="fas fa-th-large"></i>
		  </a>
		</li>
    </ul>
  </nav>
  <!-- /.navbar -->

  <aside class="main-sidebar sidebar-dark-primary elevation-4">
  	<div id="logo1"></div> 
    <div class="sidebar">
		<div id="user1"></div>
		<nav class="mt-2">
			 <ul class="nav nav-pills nav-sidebar flex-column" 
			 	 data-widget="treeview" 
			 	 role="menu" 
			 	 data-accordion="false">
			 	<div id="menu1"></div> 
		 	 </ul>
		</nav>
  	</div> 
  </aside>  

  
  <div class="content-wrapper">
  	<!-- 主区域标题 -->
    <section class="content-header">
   		<!-- 库位库存查询 -->
      <div class="container-fluid">
      	<div class="row mb-2">
      		<div class="col-sm-9">
      			<h1 class="m-0 text-dark">
   						库存查询
      		  </h1>
      		</div>

      		<div class="col-sm-1">
      			<button type="button"
      				class="btn btn-block btn-primary"
      				onclick = "queryIVN()"
      			>查询</button>
      		</div>

      		<div class="col-sm-2">
      			<ol class="breadcrumb float-sm-right">
	   					<li class="breadcrumb-item"><a href="./index.html">主页</a></li>
	   					<li class="breadcrumb-item active">库存查询</li> 
      			</ol>
      		</div>

      	</div>      	
      </div>
   
    </section>

    <section class="content">
    	<div class="card">
    		
    		<div class="card-header">
    			<h3 class="card-title">ASN查询选项</h3>
    		</div>

    		<div class="card-body">
    			
    			<div class="card" id="queryIVN">
    				<form action="" name="post_form" id="post_form" role="form">

 							<div class="row">
				 								
								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>批次号</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>入库号</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>物料号</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>客户编号</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

 							</div>

    					
 							<div class="row">
				 								
								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>法定单位</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>库位号</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>备注1</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>备注2</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

 							</div>

    					
 							<div class="row">
				 								
								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>备注3</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>备注4</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>备注5</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

								<div class="col-sm-3">
				  					<div class="form-group">
					  					<label>备注6</label>
										<input type="text" id="locId" name="locId" 
											class="form-control" placeholder="">
				  					</div>
								</div>

 							</div>  
    					    					    					    					
    				</form>

    			</div>

    		</div>

    	</div>

    	<div class="card">
    		<div class="card-header">
    			<h3 class="card-title">查询结果</h3>
    		</div>
    		<div class="card-body">
    			<div id="jsGrid1"></div>
    		</div>
    	</div>
    </section>
  </div>
  
  
<div id="footer"></div>
  
<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.js"></script>
<!-- AdminLTE for demo purposes 
<script src="dist/js/demo.js"></script>-->
</body>
<script type="text/javascript">
  
	
	(function($){
		console.log("start");
		localStorage.setItem("menuId", 4);
		//$("#mainHeader").load("mainHeader1.html");
		$("#test1").load("test1.html");
		$("#test2").load("test2.html");
		$("#test3").load("test3.html");
		$("#test4").load("test4.html");
		$("#logo1").load("logo1.html");
		$("#user1").load("user1.html");
		$("#menu1").load("menu1.html");
		$("#footer").load("foot.html");
	
		initialData();
		initTableData();

	})(jQuery);

	function initialData(){
		

		$("#menu1").ready(function(){ 
			console.log("initialData changeActive2222");

		});
		
		setTimeout(function () { 
			console.log("initialData changeActive4444");
			changeMenuActive(1);
    },1000);
	}
	
	function initTableData(){
		console.log("initTableData()");

		var data1 = {};
		var url1 = "../api/baseInfo/serv_meth/invService/showList";

		$.ajax({
			type: "post",
			url: url1,
			dataType: "json",
			data: data1,
			success: function(res){
				console.log("iniTableData()-=>",res);

				$("jsGrid1").jsGrid({
					height: "510px",
					width: "100%",
					paging: true,
					pageSize: 10,
					data: res,
					rowDoubleClick: function(args){},
					fields:[
						{name:"id", type: "number", width:55,title:"编号"},
						{name:"LotID", type: "text", width:55,title:"批次号"},
						{name:"ASNNum", type: "text", width:55,title:"入库号"},
						{name:"sku", type: "text", width:55,title:"物料号"},
						{name:"storeKey", type: "text", width:55,title:"客户编号"},
						{name:"moqNum", type: "number", width:55,title:"最小包装数量"},
						{name:"legalUnit", type: "text", width:55,title:"法定单位"},
						{name:"locID", type: "text", width:55,title:"库位号"},
						{name:"remark1", type: "text", width:55,title:"备注1"},
						{name:"remark2", type: "text", width:55,title:"备注2"},
						{name:"remark3", type: "text", width:55,title:"备注3"},
						{name:"remark4", type: "text", width:55,title:"备注4"},
						{name:"remark5", type: "text", width:55,title:"备注5"},
						{name:"remark6", type: "text", width:55,title:"备注6"},
						{name:"status", type: "text", width:55,title:"状态"}			
					]
				});

			},
			error: function(e){
				console.log(e);
			}
		})


	}

	function queryIVN(){
		console.log("queryIVN()");

	}

	$("#menu1").ready(function(){ 
		console.log("initialData changeActive");

		//$("#test1_abc1").html("abc");
		//changeActive(1);
	});
	
	$("#menu1").on('ready',function(){
		console.log("initialData test1_abc1"); 

		//changeActive(1);
	});

/*
官网：
https://tensorflow.google.cn/js?hl=zh-cn
demo1
https://github.com/aralroca/posenet-d3
demo2
https://github.com/tensorflow/tfjs-models/tree/master/pose-detection
*/	
</script>
</html>